<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>简单的下拉菜单</title>
<style>
/*.dropdown{
    position:relative;
    display:inline-block;
} */

.dropdown-content{
    width:200px;
    border:1px solid black;
    position:absolute;
    display:none;
}

.dropdown:hover .dropdown-content{
    display:block;
}
</style>
</head>
<body>
<div class="dropdown">
    <span>鼠标你过来，我为你展示下拉菜单。</span>
    <div class="dropdown-content">
        <p>下拉菜单 1</p>
        <p>下拉菜单 2</p>
    </div>
</div>
</body>
</html>